package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerFragment;
import com.kelvin.paopao.module.main.My.IMainMyPresenter;
import com.kelvin.paopao.module.main.My.MainMyFragment;
import com.kelvin.paopao.module.main.My.MainMyPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/9.
 */
@Module
public class MainMyModule {

    private MainMyFragment mView;

    public MainMyModule(MainMyFragment view) {
        this.mView = view;
    }

    @PerFragment
    @Provides
    public IMainMyPresenter providerPresenter() {
        return new MainMyPresenter(mView);
    }
}
